import api from '@/utils/http.js'

export const doctorInsertOne = async (data) => {
    return await api.post('/insertDoctor', data)
}

export const doctorSelectPage = async (data) => {
    return await api.get('/selectDoctor/page', { params: data })
}

export const doctorSelectOne = async (id) => {
    return await api.get('/getDoctorInfo/' + id)
}

export const doctorUpdateOne = async (data) => {
    return await api.put('/updateDoctor', data)
}

export const doctorDeleteOne = async (id) => {
    return await api.delete('/deleteDoctor/' + id)
}
